package com.oragraph.data;

public class Registrator {
	
	private static final String[] toRegister = {
		"com.oragraph.data.group.impl.IPBySIDGroupFactory",
		"com.oragraph.data.group.impl.IPByUserGroupFactory",
		"com.oragraph.data.group.impl.UserBySIDGroupFactory",
		"com.oragraph.data.instance.impl.IPInstanceFactory",
		"com.oragraph.data.instance.impl.SIDInstanceFactory",
		"com.oragraph.data.instance.impl.UserInstanceFactory"
	};
	
	public static void register() {
		try {
			for (int i=0; i<toRegister.length; i++) {
				Class.forName(toRegister[i]).newInstance();
			}
		}
		catch (Exception e) {
			// TODO
			e.printStackTrace();
		}
	}

}
